all: tcm_main

CPP = g++
CPPFLAGS = -std=c++11 -g
LIBS = -lpthread

%.o : %.cpp
	$(CPP) $(CPPFLAGS) -c $< -o $@


tcm_main: tcm_main.o thread_cache.o central_cache.o page_cache.o
	$(CPP) $^ -o tcm_main $(LIBS)

.PHONY: clean
clean:
	rm -rf tcm_main *.o